<?php
/* $Id: init.php UTF-8 2013-3-29 ����4:06:08 zhangxin  $ */

require_once 'defines.php';
require_once SITE_ROOT.'/Smarty-3.1.13/Smarty.class.php';

global $smarty;
$smarty = new Smarty;

$smarty->setTemplateDir(SITE_ROOT.'/templates/tpl');
$smarty->setCompileDir(SITE_ROOT.'/templates/compiled');
$smarty->setCacheDir(SITE_ROOT.'/templates/cached');
$smarty->caching = true;
$smarty->cache_lifetime = 300;

$smarty->left_delimiter = '<{';
$smarty->right_delimiter = '}>';
